{% extends "layout" %}

{% block local %}<div id="local">
	{% if tests %}<h3>Tests unitaires</h3>
	<p>This kit includes unit tests. <a href="kit/{{ kit.getid }}/tests">execute tests</a></p>{% endif %}
</div>{% endblock %}

{% block main %}
	<h2>Kit {{ kit.getid }} {{ cfg.kit.version }} </h2>
	<p>{{ cfg.kit.desc }}</p>

	{% if cfg.kit.phpversion %}
		<p>PHP versions supported : {{ cfg.kit.phpversion }}</p>
	{% endif %}

	{% if kit.listsubkits %}<h3>Kits inclus</h3>
	<dl>{% for subkit in subkits %}
		<dt><a href="kit/{{ kit.getid }}.{{ subkit }}">{{ subkit }}</a></dt>
		<dd>{% ifincollection subkit cfg.load_subkits %}<dd>loaded by parent kit</dd>{% endifincollection %}{% endfor %}
	</dl>{% endif %}

	{% if cfg.load_files %}<h3>Fichiers</h3>
	<dl>{% for file in cfg.load_files %}
		<dt>{{ file }}</dt>{% endfor %}
	</dl>{% endif %}
{% endblock %}
